<?php
/**
 * Created by PhpStorm.
 * User: Dinh Thi
 * Date: 1/19/15
 * Time: 1:49 PM
 */

namespace MyApp\Application\Controller;

class ErrorController extends MyAppAbstractController{
    public function __construct(){
        parent::__construct();

    }

    public function pageNotFound(){
        $this->view->render('Error/pageNotFound');
    }

    public function notAllowPage(){
        $this->view->render('Error/notAllowPage');
    }

    public function customErrorPage($icon = 'ban', $msg = 'Something wrong'){
        $this->view->icon = $icon;
        $this->view->msg = $msg;
        $this->view->render('Error/customError');
    }
} 